package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"shop/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/goods/add", &controllers.GoodsController{}, "post:Add")
	beego.Router("/goods/list", &controllers.GoodsController{}, "get:List")
	beego.Router("/goods/delete", &controllers.GoodsController{}, "get:Delete")
	beego.Router("/goods/info", &controllers.GoodsController{}, "get:Info")
	beego.Router("/goods/update", &controllers.GoodsController{}, "post:Update")

}
